﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Cairo;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        CairoGraphic cg;
        public Form1()
        {
            InitializeComponent();
          
          
        }

        private void button1_Click(object sender, EventArgs e)
        {
            // cai nay ah?
            //uh
        }

        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            if (cg == null)
            {
                Surface s = new Win32Surface(this.CreateGraphics().GetHdc());
                Context c = new Context(s);

                cg = new CairoGraphic(s, c);
            }

            
                cg.drawLine(0, 0, 30, 100);
            

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}
